/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.cultuurschuur.Controllers;

import be.cultuurschuur.entity.*;
import be.cultuurschuur.interfaces.*;
import be.cultuurschuur.services.*;
import java.io.Serializable;
import java.util.*;
import javax.enterprise.context.*;
import javax.inject.*;

/**
 *
 * @author Webbie
 */
@Named
@RequestScoped
public class BestemmingController implements Serializable
{    
    @Inject
    private BestemmingInterface bestemmingInterface;
    private int continent;
    private String naam;

    public int getContinent() {
        return continent;
    }

    public void setContinent(int continent) {
        this.continent = continent;
    }

    public String getNaam() {
        return naam;
    }

    public void setNaam(String naam) {
        this.naam = naam;
    }

    public void insertBestemming()
    { 
        BLBestemming blBestemming = new BLBestemming();
        blBestemming.setContinent(continent);
        blBestemming.setNaam(naam);
        blBestemming.insertBestemming();
    }
    
    public List<Bestemming> getBestemmingen()
    {
        BLBestemming blBestemming = new BLBestemming();
        return blBestemming.getBestemmingen();
    }
}
